package com.paiai.lslease.dao.apprepairs;

import com.ibatis.sqlmap.client.SqlMapClient;

import java.sql.SQLException;

public class AppRepairsExternalDAOImpl implements AppRepairsExternalDAO {

    private SqlMapClient sqlMapClient;

    public AppRepairsExternalDAOImpl(SqlMapClient sqlMapClient) {
        super();
        this.sqlMapClient = sqlMapClient;
    }

    @Override
    public int getUpToDateAppRepairs() throws SQLException {
        return (Integer)sqlMapClient.queryForObject("app_repairs_external.getUpToDateAppRepairs");
    }
}
